
<!DOCTYPE html >
<html>
<head>
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="Keywords" content="{{ $config->indexKey }}" />
	<meta name="Description" content="{{ $config->indexDesc }}"/>
	<title>{{ $config->indexTitle }}</title>
	<link rel="shortcut icon" href="{{ asset('/images/favicon.ico') }}" />
	<link rel="stylesheet" type="text/css" href="{{ asset('/css/zhuye/style.css') }}"/>
	<link rel="stylesheet" type="text/css" href="{{ asset('/css/zhuye/public_1.css') }}"/>
	<link rel="stylesheet" type="text/css" href="{{ asset('/css/zhuye/shouye.css') }}"/>
    <script src=" {{ asset('/js/jquery-1.8.3.min.js') }} "></script>
</head>
<body>

 @extends('common.header')

<!--内容开始-->
<div class="cont" style="margin-top:100px">
    <!--工具，轮播，资讯-->
    <div class="cont_t">
        <!--工具，轮播-->
        <div class="cont_t_l">
            <!--工具导航-->
            <div class="banner1 fr">
                <div class="tool_nav">
                    <a href="{{ url('/footClub') }}/16">
                        <i class="icon_bf"></i>
                        <span>足球预测</span>
                    </a>
                </div>
                <div class="tool_nav">
                    <a href="{{ url('/footClub') }}/17">
                        <i class="icon_zs"></i>
                        <span>足球情报</span>
                    </a>
                </div>
                <div class="tool_nav">
                    <a href="{{ url('/newsList/all/tag') }}">
                        <i class="icon_zl"></i>
                        <span>足球新闻</span>
                    </a>
                </div>
                <div class="tool_nav">
                    <a href="{{ url('/photoList') }}">
                        <i class="icon_img"></i>
                        <span>图库列表</span>
                    </a>
                </div>
                <div class="tool_nav">
                    <a href="{{ url('/database') }}">
                        <i class="icon_ku"></i>
                        <span>资料库</span>
                    </a>
                </div>

            </div>
            <!--轮播-->
			<div data-ride="carousel" class="carousel slide" id="carousel-example-generic" style=
"width:540px;height:298px;float:right;margin:0 auto;" >
     
				<!-- 小圆点 -->	
				<ol class="carousel-indicators">
					@forelse( $all_shufflings as $key => $shuffling_info )
						@if( $key == 0 )
							<li class="active" data-slide-to="{{ $key }}" data-target="#carousel-example-generic"></li>
						@else
							<li data-slide-to="{{ $key }}" data-target="#carousel-example-generic"></li>
						@endif
					@empty
					@endforelse
				</ol>
					 
				<!-- 图片 -->
				<div role="listbox" class="carousel-inner" >
					
					@forelse( $all_shufflings as $key => $shuffling_info )
				
						@if( $key == 0 )
							<div class="item active">
								<a href="{{ $shuffling_info->next_url }}">
										<img src="{{ $shuffling_info->pic_url }}" alt="" style="width:540px;height:298px" />
								</a>
							</div>
						@else
							<div class="item">
								<a href="{{ $shuffling_info->next_url }}">
									<img src="{{ $shuffling_info->pic_url }}" alt="" style="width:540px;height:298px"/>
								</a>
							</div>
						@endif
					@empty
					@endforelse
				  
					<a data-slide="prev" role="button" href="#carousel-example-generic" class="left carousel-control">
						<span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>
						<span class="sr-only">Previous</span>
					</a>
				 
					<a data-slide="next" role="button" href="#carousel-example-generic" class="right carousel-control">
						<span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>
						<span class="sr-only">Next</span>
					</a>
				  
				</div>
			</div>



	  </div>
       
	   <!--资讯推荐-->
        <div class="rmss cont_t_r">
            <div class="jfb" id="recom_news" style="margin-top: 0">
                <a href="#">资讯<i></i></a>
                <a href="#">球吧<i></i></a>
            </div>
            <ul class="news_tit">
				@forelse( $head_news as $key=>$news_info )
                <li><a href="{{ url('/news') }}/{{ $news_info->id }}" title="{{ $news_info->title  }}">{{ $news_info -> title }}</a></li>
				@empty
				@endforelse
            </ul>
            <ul class="news_tit">
				@forelse( $head_articles as $key=>$article_info )
                <li><a href="{{ url('/article') }}/{{ $article_info->id }}" title="{{ $article_info->title  }}">{{ $article_info -> title }}</a></li>
				@empty
				@endforelse
            </ul>

        </div>
    </div>

    <!--球吧 资讯-->
    <div class="cont_t">
        <div class="cont_t_l fl">
            <!-- 一周要文 -->
            <div class="yzyw">
                <!--标题-->
                <div class="yzyw1">
                    <div class="sek"></div>
                    <h3>球<span class="col2">吧</span></h3>
                    <div class="gengduo">
                        <a href="{{ url('/footClub') }}">更多>></a>
                    </div>
                </div>
				<!-- 左侧 预测 -->
                <div class="club_l">
					<div class="club_qb_tit">
						<i style="background:url({{ asset('images/pc/icon-qbjb.png') }});background-size: 100% 100%">预测</i>
					</div>	
                    
					<div class="club_qb_main">
						@forelse( $left_preview as $key => $article )
						@if( $key==0 )
						<div class="club_l_top">
							<a href="{{ url('/article') }}/{{ $article->id }}" title="{{ $article->title }}">
								<div class="club_l_img">
									<img src="{{  $left_pic }}" alt="">
								</div>
								<div class="club_l_main">
									<div class="club_l_mian_tit">{{  $article->title  }}</div>
									<div class="club_l_main_art">{{ $left_content }}</div>
								</div>
							</a>
						</div>
						@else
							@break
						@endif
					@empty
					@endforelse
                    
					<!--球吧列表（9）-->
                    <ul class="club_l_bott">
						@forelse( $left_preview as $key => $article )
							@if( $key!=0 )
							<li>
								<a href="{{ url('/article') }}/{{ $article->id }}" title="{{ $article->title }}">{{ $article->title }}</a>
							</li>
							@else
								@continue
							@endif
						@empty
						@endforelse
                    </ul>
					</div>
                </div>
				
				
				<!-- 右侧 情报 -->
                <div class="club_l club_r">
					<div class="club_qb_tit">
						<i style="background:url({{ asset('images/pc/icon-qbjb.png') }});background-size: 100% 100%">情报</i>
					</div>
					
					<div class="club_qb_main">
						@forelse( $right_info as $key => $article )
						@if( $key==0 )
						<div class="club_l_top">
							<a href="{{ url('/article') }}/{{ $article->id }}" title="{{ $article->title }}">
								<div class="club_l_img">
									<img src="{{  $right_pic }}" alt="" style="margin-top:0">
								</div>
								<div class="club_l_main">
									<div class="club_l_mian_tit">{{ $article->title }}</div>
									<div class="club_l_main_art">{{ $right_content }}</div>
								</div>
							</a>
						</div>
						@else
							@break
						@endif
						@empty
						@endforelse
						<!--球吧列表（9）-->
						<ul class="club_l_bott">
							@forelse( $right_info as $key => $article )
								@if( $key!=0 )
								<li>
									<a href="{{ url('/article') }}/{{ $article->id }}" title="{{ $article->title }}">{{ $article->title }}</a>
								</li>
						   
								@else
									@continue
								@endif
							@empty
							@endforelse
						</ul>
					</div>
				
					
                </div>
                <div class="clear"></div>


            </div>
        </div>
        <div class="cont_t_r fr">
            <!-- 新闻资讯 -->
            <div class="xfrw">
                <!--标题-->
                <div class="xfrw1">
                    <div class="sek"></div>
                    <h3>今日<span class="col2">资讯</span></h3>
                    <div class="gengduo">
                        <a href="/newsList/all/tag">更多>></a>
                    </div>
                </div>
                <!--内容（10个）-->
                <div class="area-sub">
                    <div id="layout-t" class="tab-product tab-sub-3 ui-style-gradient">
                        <div class="tab-bd dom-display">
                            <div class="tab-bd-con current">
                                <ul class="m-list list-tweet">
								
									@forelse( $tuijian_news as $key => $news )
									
										@if( $key==0 )
											<li class="clearfix2 eat-me">
												<h3>
													<a href="{{ url('/news') }}/{{ $news->id }}" title="{{ $news->title  }}">{{ $news->title  }}</a>
												</h3>
												<a href="{{ url('/news') }}/{{ $news->id }}" title="{{ $news->title  }}">
													<img src="{{ $news->pic_url  }}" alt="" width="102" height="80">
													<p class="list-content">{!! $tuijian_content[$key]['content'] !!}</p>
												</a>
											</li>
										@else
											<li class="clearfix2 drink-me">
												<h3>
													<a href="{{ url('/news') }}/{{ $news->id }}" title="{{ $news->title  }}">{{ $news->title  }}</a>
												</h3>
												<a href="{{ url('/news') }}/{{ $news->id }}" title="{{ $news->title  }}">
													<img src="{{ $news->pic_url  }}" alt="" width="102" height="80">
													<p class="list-content">{!! $tuijian_content[$key]['content'] !!}</p>
												</a>
											</li>
										@endif
									@empty
									@endforelse


                                </ul>
                            </div>

                        </div>
                    </div>
                </div>

            </div>
            <div class="clear"></div>
        </div>
    </div>

    <!--直播-->
    <div class="cont_t1">
        <!--直播-->
        <div class="online" style="margin-top: 20px">
            <!-- 直播 -->
            <div class="yzyw" style="height: auto">
                <!--标题-->
                <div class="yzyw1">
                    <div class="sek"></div>
                    <h3 style="color: #de1e30">直播<span class="col2">列表</span></h3>
                </div>
                <!--直播列表(16)-->
                <ul class="cont_live" id="contLive">
					
                    @forelse( $all_live as $key => $live_info )
					<li class="cont_live_item">
                        <span class="live_time">
                            <b>{{ $live_info['c3'] }}</b>
                            <b>{{ $live_info['datet'] }}</b>
                        </span>
                        <span class="live_class"><i></i>{{ $live_info['league_name'] }}</span>
                        <a href="{{ url('/live_preview') }}/{{ $live_info['id'] }}" class="live_team"><span>{{ $live_info['c4T1'] }}</span> VS <span>{{ $live_info['c4T2'] }}</span></a>
                        <a href="{{ url('/live_preview') }}/{{ $live_info['id'] }}" class="live_live">直播</a>
                    </li>
					@empty
					@endforelse
					
                    

                </ul>
            </div>
        </div>

    </div>
	
	  <!--预测 积分榜-->
    <div class="cont_t1" style="height: 869px; margin-top:18px">
		<!--左侧 预测-->
        <div class="cont_t_l fl">
            <div class="yzyw" style="height: auto">
                <!--标题-->
              <div class="yzyw1">
                    <div class="sek"></div>
                    <h3 style="color: #de1e30">竞彩<span class="col2">推荐</span></h3>
                    <div class="gengduo">
                        <a href="{{ url('/recommendlist') }}">更多>></a>
                    </div>
                </div>
                <!--推荐 列表(8)-->
                <ul class="data_list">
				@forelse( $recommends as $key => $tuijian )
					<li>
                        <div class="tjLeft">
							<!--用户头像-->
                            <a href="{{ url('/showcenter') }}/{{ $tuijian['uid'] }}" class="portrait">
                                <img src="{{ $tuijian['pic_url'] }}" alt="">
                            </a>
							<!--用户名-->
                            <span class="rankName">
                                <a href="{{ url('/showcenter') }}/{{ $tuijian['uid'] }}">{{ $tuijian['username'] }}</a>
                            </span>
							<!--近几天胜率
                            <span class="matchData">近3天:<span class="t_r">5中2</span></span>
                            <span class="rateData"> 胜率:<span class="t_r">40%</span></span>-->
                        </div>
                        <div class="tjright">
							<!--赛事名称-->
                            <span class="tjTit">
								<a href="{{ url('/recommenddetail') }}/{{ $tuijian['id'] }}" ><span>{{ $tuijian['home'] }}</span> vs <span>{{ $tuijian['away'] }}</span></a>
							</span>
							<!--竞猜时间-->
                            <span class="tjTime"><span>比赛时间： </span> {{ $tuijian['match_date'] }}</span>
                            <span class="tjTime tjTime1"><span>发布时间： </span> {{ $tuijian['create_time'] }}</span>
							<br/>
							<!--推荐理由-->
                            <span style="display: inline-block;font-size:15px;width:500px;height:25px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">推荐理由：{!! $tuijian['content'] !!}</span>
							<div>
								<a href="{{ url('/recommenddetail') }}/{{ $tuijian['id'] }}" class="buyBtn">查看</a>
							</div>
						</div>
                    </li>
				@empty
				@endforelse
										
                </ul>
           
		   </div>
        </div>
        <!--积分榜,射手榜-->
        <div class="cont_t_r fr" style="width: 360px">
            <!--积分榜-->
            <div>
                <!--积分榜单标题-->
                <div class="jfb">
                    <div class="sek"></div>
                    <h3>积分<span class="col2">榜单</span></h3>
                    <div class="gengduo">
                        <a href="{{ url('/database') }}">资料库>></a>
                    </div>
                </div>
                <!--积分头部-->
                <div class="jifen_title">
                    <div class="jifen">
                        <ul id="score_table">
							@forelse( $allow as $league_id=>$name )
								@if( $league_id==2 )
									<li class="hover" id="league_{{ $league_id }}" >{{ $name }}</li>
								@else
									<li id="league_{{ $league_id }}" >{{ $name }}</li>
								@endif
							@empty
							@endforelse
                        </ul>
                    </div>
                </div>
                
				
				<!--积分主体-->
                <div class="Contentbox">
                    
					@forelse( $jifenbang as $league_id => $jifen )
					<div class="con_two">
                        <table class="jifen_box" style="border:none">
                            <tbody>
								<!--nav-->
								<tr>
									<td>&nbsp;排 名</td>
									<td style="text-align:left; padding-left:18px; width:110px">球 队</td>
									<td>场次</td>
									<td>胜</td>
									<td>平</td>
									<td>负</td>
									<td>积分</td>
								</tr>
								<!--球队积分榜（10）-->
								@forelse( $jifen as $key => $jifen_info )
								<tr>
									<td class="td2">{{ $jifen_info['c1'] }}</td>
									<td class="td2 td32"  >
										@if( $jifen_info['canclick'] )
											<a href="{{ url('/teamdetail') }}/{{ $jifen_info['team_id'] }}" style="color:red;" >
												{{ $jifen_info['c2'] }}
											</a>
										@else
											{{ $jifen_info['c2'] }}
										@endif
									</td>
									<td class="td2">{{ $jifen_info['name'] }}</td>
									<td class="td2">{{ $jifen_info['c41'] }}</td>
									<td class="td2">{{ $jifen_info['c42'] }}</td>
									<td class="td2">{{ $jifen_info['c43'] }}</td>
									<td class="td2">{{ $jifen_info['c6'] }}</td>
								</tr>
								@empty
								@endforelse
							</tbody>
                        </table>
                    </div>
					@empty
					@endforelse
                    
                    
                </div>
            </div>
            <!--射手榜-->
            <div>
                <!--射手榜单标题-->
                <div class="jfb" style="margin-top: 15px">
                    <div class="sek"></div>
                    <h3>射手<span class="col2">榜单</span></h3>
                    <div class="gengduo">
                        <a href="{{ url('/database') }}">资料库>></a>
                    </div>
                </div>
                <!--射手头部-->
                <div class="jifen_title ">
                    <div class="jifen">
                        <ul id="striker_table">
							@forelse( $allow as $league_id=>$name )
								@if( $league_id==2 )
									<li class="hover" id="league_{{ $league_id }}" >{{ $name }}</li>
								@else
									<li id="league_{{ $league_id }}" >{{ $name }}</li>
								@endif
							@empty
							@endforelse
                        </ul>
                    </div>
                </div>
                <!--射手主体-->
                <div class="Contentbox">
                    
					
					@forelse( $sheshoubang as $league_id => $sheshouinfo )
					<div class="con_striker ">
						<table class="striker_box" style="border:none" >
							<tbody>
							<!--nav-->
							<tr>
								<td>&nbsp;名次</td>
								<td style="text-align:left;padding-left:18px; width:120px">球员</td>
								<td style="text-align:left;padding-left:18px; width:100px">球队</td>
								<td>进球</td>
							</tr>
							<!--球队射手榜（10）-->
							@forelse( $sheshouinfo as $key => $sheshou )
								<tr>
									<td class="td2">{{ $sheshou['c1'] }}</td>
									<td class="td2 td32">
										@if($sheshou['canclick'])
											<a href="{{ url('/playerdetail') }}/{{ $sheshou['player_id'] }}" style="color:red;" >
												{{ $sheshou['c2'] }}
											</a>
										@else
											{{ $sheshou['c2'] }}
										@endif
									</td>
									<td class="td2 td33">{{ $sheshou['c3'] }}</td>
									<td class="td2">{{ $sheshou['c4'] }}</td>
								</tr>
								
							@empty
							@endforelse
							</tbody>
						</table>
					</div>
					@empty
					@endforelse
                    
                    
					
                </div>
            </div>
        </div>
        <div class="clear"></div>

    </div>

    <!--精彩图库-->	
    <div class="cont_t" style="padding-top:0">
        <div class="jctk"  style="margin-top:0">
            <!--图库标题-->
            <div class="jctk1">
                <div class="sek"></div>
                <h3>精彩<span class="col2">图库</span></h3>
                <div class="gengduo">
                    <a href="{{ url('/photoList') }}">更多>></a>
                </div>
            </div>
            <!--图库主体-->
            <div class="jctk2">
                
				<div class="jctk2_l jctk2_l_l	" style="width: 183px">
					@forelse( $all_photos as $key => $photo )
						@if( $key<3 )
						<div class="pic6" style="float: none">
							<a href="{{ url('/photoDetail') }}/{{ $photo->id }}" title="{{ $photo->title }}">
								<img src="{{ $photo->pic_url }}"  alt="">
							</a>
							<div class="pic_z6">
								<a>{{ $photo->desc }}</a>
							</div>
						</div>
						@else
							@continue
						@endif
					@empty
					@endforelse
                  
                </div>
				
				
                <div class="jctk2_l jctk2_l_2">
					
					@forelse( $all_photos as $key => $photo )
						@if( $key==3 )
							<div class="pic4">
								<a href="{{ url('/photoDetail') }}/{{ $photo->id }}" title="{{ $photo->title }}">
										<img src="{{ $photo->pic_url }}"  alt="">
									</a>
								<div class="pic_z4">
									<a>{{ $photo->desc }}</a>
								</div>
							</div>
						@elseif( $key==4 || $key==5 )
							<div class="pic6" >
								<a href="{{ url('/photoDetail') }}/{{ $photo->id }}" title="{{ $photo->title }}" >
										<img src="{{ $photo->pic_url }}"  alt="">
									</a>
								<div class="pic_z6">
									<a>{{ $photo->desc }}</a>
								</div>
							</div>
						@else
							@continue
						@endif
					@empty
					@endforelse
                    

                </div>
                <div class="jctk2_z jctk2_l_2">
                   
				   @forelse( $all_photos as $key => $photo )
						@if( $key==6 )
							<div class="pic4">
								<a href="{{ url('/photoDetail') }}/{{ $photo->id }}" title="{{ $photo->title }}">
										<img src="{{ $photo->pic_url }}"  alt="">
									</a>
								<div class="pic_z4">
									<a>{{ $photo->desc }}</a>
								</div>
							</div>
						@elseif( $key==7 || $key==8 )
							<div class="pic6" >
								<a href="{{ url('/photoDetail') }}/{{ $photo->id }}" title="{{ $photo->title }}" >
										<img src="{{ $photo->pic_url }}"  alt="">
									</a>
								<div class="pic_z6">
									<a>{{ $photo->desc }}</a>
								</div>
							</div>
						@else
							@continue
						@endif
					@empty
					@endforelse
				   

                    
				</div>
                <div class="jctk2_r">
                    
					 @forelse( $all_photos as $key => $photo )
						@if( $key==9 || $key==10 )
							<div class="pic5">
								<a href="{{ url('/photoDetail') }}/{{ $photo->id }}" title="{{ $photo->title }}">
									<img src="{{ $photo->pic_url }}"  alt="">
								</a>
								<div class="pic_z5">
									<a>{{ $photo->desc }}</a>
								</div>
							</div>
						@else
							@continue
						@endif
					@empty
					@endforelse
					
                    
                </div>
            </div>
        </div>
    </div>
    <div class="clear"></div>

    <!--友情链接-->
    <div class="cont_t">
        <div class="link">
            <span>友情链接 <i> (友链专员QQ：443760000)</i></span>
			@forelse( $links as $link )
				<a href="{{ $link->url }}">{{ $link->name }}</a>
			@empty
			@endforelse
        </div>
    </div>
</div>

@extends('common.footer')
<script>
    $(document).ready(function(){
		//直播，积分榜隔行变色
		$('#contLive').ready(function () {
			$("#contLive li:even").css("background-color", "#fff");
		});
		$('.Contentbox').ready(function () {
			$(".jifen_box tr:even").addClass("td_nav");
			$(".jifen_box tr:odd").addClass("td_nav1");
		});
		$('.Contentbox').ready(function () {
			$(".striker_box tr:even").addClass("td_nav");
			$(".striker_box tr:odd").addClass("td_nav1");
		});
		//资讯球吧tab切换
		$(".news_tit").eq(0).show();
		$("#recom_news a i").eq(0).show();
		$("#recom_news a").eq(0).addClass("news_active");
		$("#recom_news a").click(function(){
			var num =$("#recom_news a").index(this);
			$("#recom_news a").removeClass("news_active");
			$(this).addClass("news_active");
			$("#recom_news").show();
			$(".news_tit").hide();
			$(".news_tit").eq(num).show().siblings(".news_tit").hide();
			$("#recom_news a i").hide();
			$("#recom_news a i").eq(num).show().siblings(".news_tit").hide();
		});
		//积分榜tab切换
		$(".con_two").eq(0).show();
		$("#score_table li").eq(0).addClass("hover");
		$("#score_table li").click(function(){
			var num =$("#score_table li").index(this);
			$("#score_table li").removeClass("hover");
			$(this).addClass("hover");
			$(".con_two").hide();
			$(".con_two").eq(num).show().siblings().hide();
		});
		//射手榜tab切换
		$(".con_striker").eq(0).show();
		$("#striker_table li").eq(0).addClass("hover");
		$("#striker_table li").click(function(){
			var num =$("#striker_table li").index(this);
			$("#striker_table li").removeClass("hover");
			$(this).addClass("hover");
			$(".con_striker").hide();
			$(".con_striker").eq(num).show().siblings().hide();
		})
		//今日资讯
        $(".list-tweet >li").mouseover(function(){
            $(this).removeClass("drink-me");
            $(this).addClass("eat-me");
            $(".eat-me").removeClass("eat-me");
            $(".clearfix2").addClass("drink-me");
        });
        $(".list-tweet >li").mouseout(function(){
            //$(this).removeClass("eat-me");
            //$(this).addClass("drink-me");
            //$(".list-tweet >li:first").addClass("eat-me");
            //$(".list-tweet >li:first").removeClass("drink-me");
        });
        $(".list-tweet >li").mouseover(function(){
            $(this).removeClass("drink-me");
            $(this).addClass("eat-me");
        });

    });
</script>


</body>
</html>